﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using ARchGL.Platform.Core;
using ARchGL.Platform.EntityFrameworkCore;

namespace ARchGL.Platform.Mappings
{
    public class AttachmentsMapping : IEntityTypeConfiguration<Attachments>
    {
        public void Configure(EntityTypeBuilder<Attachments> builder)
        {
            //builder.ToTable(MappingConsts.Prefix + nameof(Attachments));

            builder.Property(p => p.Name).HasMaxLength(256);
            builder.Property(p => p.Url).HasMaxLength(256); 
        }
    }
}
